function off (name) {
  document[name].src='img/'+name+'.gif';
}
function on (name) {
  document[name].src='img/'+name+'_on.gif';
}


function offinside (name) {
  document[name].src='../img/'+name+'.gif';
}
function oninside (name) {
  document[name].src='../img/'+name+'_on.gif';
}

function iconOn(photoid) {
	identity=document.getElementById(photoid);
	identity.className='prphotoOn';
	}
	
function iconOff(photoid) {
	identity=document.getElementById(photoid);
	identity.className='prphoto';
	}
	
function projectOn(projectid) {
	identity=document.getElementById(projectid);
	identity.className='projectOn';
	}
	
function projectOff(projectid) {
	identity=document.getElementById(projectid);
	identity.className='project';
	}
	
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		ichome_over = newImage("img/topmenu_icon_home_on.gif");
		preloadFlag = true;
	}
}